﻿@model ElectrosLtd.Models.ProductDetailsModel

@{
    ViewBag.Title = "ProductDetails";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Product Details</h2>

<fieldset>

    <div class="display-field" style="font-weight:bold;">
        @Html.DisplayFor(model => model.Name)
    </div>

    <div class="display-label" style="font-weight:bold;">Features: </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Features)
    </div>

    <div class="display-field">
        <img alt="" src='@Html.DisplayFor(model => model.Image) ' width ="200px" height="200px" />
    </div>

    <div class="display-label" style="font-weight:bold;">Stock</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Stock)
    </div>

    <div class="display-label" style="font-weight:bold;">Price</div>
    <div class="display-field">
        €@Html.DisplayFor(model => model.Price)
    </div>

    <div class="display-label" style="font-weight:bold;">DateListed: </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.DateListed)
    </div>

    <div>
    <br/>
    @Html.ActionLink("Add To Cart", "Add", new { id = Model.ID, quantity = 1 })
       </div>
    
</fieldset>

<fieldset>
    
    <div class="display-field">
        Product Rating: @Html.DisplayFor(model => model.ProductRating)/ 5 Rated by: @Html.DisplayFor(model => model.NoOfRatings) User(s)               
    </div>     
</fieldset>

<fieldset>
@Html.DisplayFor(model => model.NoOfComments) Comment(s) placed
<br/>
@Html.Action("_Comments", "Partial")



</fieldset>
<p>
    @Html.ActionLink("Back to Products", "Index")
</p>
